package com.yy.web.sys_paper_choice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
//import com.itmk.web.question.entity.ResultPaperChoice;
//import com.itmk.web.sys_paper_choice.entity.SysPaperChoice;
import com.yy.web.question.entity.ResultPaperChoice;
import com.yy.web.sys_paper_choice.entity.SysPaperChoice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author YY
 */
@Mapper
public interface SysPaperChoiceMapper extends BaseMapper<SysPaperChoice> {
    List<SysPaperChoice> getListPaperChoice(@Param("questionId") Long questionId);
    /**
     * 根据试题id查询选项列表
     */
    List<SysPaperChoice> getChoiceList(@Param("paperId") Long paperId);
    /**
     * 查询选项的票数统计
     */
    List<ResultPaperChoice> getListPaperChoices(@Param("questionId") Long questionId);
}
